/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.mapfinal.portal.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author yangyong 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-05-23
 * @version 1.0
 * @since 1.0
 */
public class TagCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static TagCriteria create() {
		return new TagCriteria();
	}
	
	public static TagCriteria create(Column column) {
		TagCriteria that = new TagCriteria();
		that.add(column);
        return that;
    }

    public static TagCriteria create(String name, Object value) {
        return (TagCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("cms_tag", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public TagCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public TagCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public TagCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public TagCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public TagCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public TagCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public TagCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public TagCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public TagCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public TagCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public TagCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public TagCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public TagCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public TagCriteria andIdIsNull() {
		isnull("id");
		return this;
	}
	
	public TagCriteria andIdIsNotNull() {
		notNull("id");
		return this;
	}
	
	public TagCriteria andIdIsEmpty() {
		empty("id");
		return this;
	}

	public TagCriteria andIdIsNotEmpty() {
		notEmpty("id");
		return this;
	}
       public TagCriteria andIdEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public TagCriteria andIdNotEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.NOT_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public TagCriteria andIdGreaterThan(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.GREATER_THEN, "id", "java.lang.Long", "Float");
          return this;
      }

      public TagCriteria andIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.GREATER_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public TagCriteria andIdLessThan(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.LESS_THEN, "id", "java.lang.Long", "Float");
          return this;
      }

      public TagCriteria andIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.LESS_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public TagCriteria andIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("id", value1, value2, ConditionMode.BETWEEN, "id", "java.lang.Long", "Float");
    	  return this;
      }

      public TagCriteria andIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("id", value1, value2, ConditionMode.NOT_BETWEEN, "id", "java.lang.Long", "Float");
          return this;
      }
        
      public TagCriteria andIdIn(List<java.lang.Long> values) {
          addCriterion("id", values, ConditionMode.IN, "id", "java.lang.Long", "Float");
          return this;
      }

      public TagCriteria andIdNotIn(List<java.lang.Long> values) {
          addCriterion("id", values, ConditionMode.NOT_IN, "id", "java.lang.Long", "Float");
          return this;
      }
	public TagCriteria andPidIsNull() {
		isnull("pid");
		return this;
	}
	
	public TagCriteria andPidIsNotNull() {
		notNull("pid");
		return this;
	}
	
	public TagCriteria andPidIsEmpty() {
		empty("pid");
		return this;
	}

	public TagCriteria andPidIsNotEmpty() {
		notEmpty("pid");
		return this;
	}
       public TagCriteria andPidEqualTo(java.lang.Long value) {
          addCriterion("pid", value, ConditionMode.EQUAL, "pid", "java.lang.Long", "Float");
          return this;
      }

      public TagCriteria andPidNotEqualTo(java.lang.Long value) {
          addCriterion("pid", value, ConditionMode.NOT_EQUAL, "pid", "java.lang.Long", "Float");
          return this;
      }

      public TagCriteria andPidGreaterThan(java.lang.Long value) {
          addCriterion("pid", value, ConditionMode.GREATER_THEN, "pid", "java.lang.Long", "Float");
          return this;
      }

      public TagCriteria andPidGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("pid", value, ConditionMode.GREATER_EQUAL, "pid", "java.lang.Long", "Float");
          return this;
      }

      public TagCriteria andPidLessThan(java.lang.Long value) {
          addCriterion("pid", value, ConditionMode.LESS_THEN, "pid", "java.lang.Long", "Float");
          return this;
      }

      public TagCriteria andPidLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("pid", value, ConditionMode.LESS_EQUAL, "pid", "java.lang.Long", "Float");
          return this;
      }

      public TagCriteria andPidBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("pid", value1, value2, ConditionMode.BETWEEN, "pid", "java.lang.Long", "Float");
    	  return this;
      }

      public TagCriteria andPidNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("pid", value1, value2, ConditionMode.NOT_BETWEEN, "pid", "java.lang.Long", "Float");
          return this;
      }
        
      public TagCriteria andPidIn(List<java.lang.Long> values) {
          addCriterion("pid", values, ConditionMode.IN, "pid", "java.lang.Long", "Float");
          return this;
      }

      public TagCriteria andPidNotIn(List<java.lang.Long> values) {
          addCriterion("pid", values, ConditionMode.NOT_IN, "pid", "java.lang.Long", "Float");
          return this;
      }
	public TagCriteria andNameIsNull() {
		isnull("name");
		return this;
	}
	
	public TagCriteria andNameIsNotNull() {
		notNull("name");
		return this;
	}
	
	public TagCriteria andNameIsEmpty() {
		empty("name");
		return this;
	}

	public TagCriteria andNameIsNotEmpty() {
		notEmpty("name");
		return this;
	}
        public TagCriteria andNameLike(java.lang.String value) {
    	   addCriterion("name", value, ConditionMode.FUZZY, "name", "java.lang.String", "Float");
    	   return this;
      }

      public TagCriteria andNameNotLike(java.lang.String value) {
          addCriterion("name", value, ConditionMode.NOT_FUZZY, "name", "java.lang.String", "Float");
          return this;
      }
      public TagCriteria andNameEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andNameNotEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.NOT_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andNameGreaterThan(java.lang.String value) {
          addCriterion("name", value, ConditionMode.GREATER_THEN, "name", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andNameGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.GREATER_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andNameLessThan(java.lang.String value) {
          addCriterion("name", value, ConditionMode.LESS_THEN, "name", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andNameLessThanOrEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.LESS_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andNameBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("name", value1, value2, ConditionMode.BETWEEN, "name", "java.lang.String", "String");
    	  return this;
      }

      public TagCriteria andNameNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("name", value1, value2, ConditionMode.NOT_BETWEEN, "name", "java.lang.String", "String");
          return this;
      }
        
      public TagCriteria andNameIn(List<java.lang.String> values) {
          addCriterion("name", values, ConditionMode.IN, "name", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andNameNotIn(List<java.lang.String> values) {
          addCriterion("name", values, ConditionMode.NOT_IN, "name", "java.lang.String", "String");
          return this;
      }
	public TagCriteria andDescriptionIsNull() {
		isnull("description");
		return this;
	}
	
	public TagCriteria andDescriptionIsNotNull() {
		notNull("description");
		return this;
	}
	
	public TagCriteria andDescriptionIsEmpty() {
		empty("description");
		return this;
	}

	public TagCriteria andDescriptionIsNotEmpty() {
		notEmpty("description");
		return this;
	}
        public TagCriteria andDescriptionLike(java.lang.String value) {
    	   addCriterion("description", value, ConditionMode.FUZZY, "description", "java.lang.String", "String");
    	   return this;
      }

      public TagCriteria andDescriptionNotLike(java.lang.String value) {
          addCriterion("description", value, ConditionMode.NOT_FUZZY, "description", "java.lang.String", "String");
          return this;
      }
      public TagCriteria andDescriptionEqualTo(java.lang.String value) {
          addCriterion("description", value, ConditionMode.EQUAL, "description", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andDescriptionNotEqualTo(java.lang.String value) {
          addCriterion("description", value, ConditionMode.NOT_EQUAL, "description", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andDescriptionGreaterThan(java.lang.String value) {
          addCriterion("description", value, ConditionMode.GREATER_THEN, "description", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andDescriptionGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("description", value, ConditionMode.GREATER_EQUAL, "description", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andDescriptionLessThan(java.lang.String value) {
          addCriterion("description", value, ConditionMode.LESS_THEN, "description", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andDescriptionLessThanOrEqualTo(java.lang.String value) {
          addCriterion("description", value, ConditionMode.LESS_EQUAL, "description", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andDescriptionBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("description", value1, value2, ConditionMode.BETWEEN, "description", "java.lang.String", "String");
    	  return this;
      }

      public TagCriteria andDescriptionNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("description", value1, value2, ConditionMode.NOT_BETWEEN, "description", "java.lang.String", "String");
          return this;
      }
        
      public TagCriteria andDescriptionIn(List<java.lang.String> values) {
          addCriterion("description", values, ConditionMode.IN, "description", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andDescriptionNotIn(List<java.lang.String> values) {
          addCriterion("description", values, ConditionMode.NOT_IN, "description", "java.lang.String", "String");
          return this;
      }
	public TagCriteria andIconIsNull() {
		isnull("icon");
		return this;
	}
	
	public TagCriteria andIconIsNotNull() {
		notNull("icon");
		return this;
	}
	
	public TagCriteria andIconIsEmpty() {
		empty("icon");
		return this;
	}

	public TagCriteria andIconIsNotEmpty() {
		notEmpty("icon");
		return this;
	}
        public TagCriteria andIconLike(java.lang.String value) {
    	   addCriterion("icon", value, ConditionMode.FUZZY, "icon", "java.lang.String", "String");
    	   return this;
      }

      public TagCriteria andIconNotLike(java.lang.String value) {
          addCriterion("icon", value, ConditionMode.NOT_FUZZY, "icon", "java.lang.String", "String");
          return this;
      }
      public TagCriteria andIconEqualTo(java.lang.String value) {
          addCriterion("icon", value, ConditionMode.EQUAL, "icon", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andIconNotEqualTo(java.lang.String value) {
          addCriterion("icon", value, ConditionMode.NOT_EQUAL, "icon", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andIconGreaterThan(java.lang.String value) {
          addCriterion("icon", value, ConditionMode.GREATER_THEN, "icon", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andIconGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("icon", value, ConditionMode.GREATER_EQUAL, "icon", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andIconLessThan(java.lang.String value) {
          addCriterion("icon", value, ConditionMode.LESS_THEN, "icon", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andIconLessThanOrEqualTo(java.lang.String value) {
          addCriterion("icon", value, ConditionMode.LESS_EQUAL, "icon", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andIconBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("icon", value1, value2, ConditionMode.BETWEEN, "icon", "java.lang.String", "String");
    	  return this;
      }

      public TagCriteria andIconNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("icon", value1, value2, ConditionMode.NOT_BETWEEN, "icon", "java.lang.String", "String");
          return this;
      }
        
      public TagCriteria andIconIn(List<java.lang.String> values) {
          addCriterion("icon", values, ConditionMode.IN, "icon", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andIconNotIn(List<java.lang.String> values) {
          addCriterion("icon", values, ConditionMode.NOT_IN, "icon", "java.lang.String", "String");
          return this;
      }
	public TagCriteria andTypeIsNull() {
		isnull("type");
		return this;
	}
	
	public TagCriteria andTypeIsNotNull() {
		notNull("type");
		return this;
	}
	
	public TagCriteria andTypeIsEmpty() {
		empty("type");
		return this;
	}

	public TagCriteria andTypeIsNotEmpty() {
		notEmpty("type");
		return this;
	}
       public TagCriteria andTypeEqualTo(java.lang.Integer value) {
          addCriterion("type", value, ConditionMode.EQUAL, "type", "java.lang.Integer", "Float");
          return this;
      }

      public TagCriteria andTypeNotEqualTo(java.lang.Integer value) {
          addCriterion("type", value, ConditionMode.NOT_EQUAL, "type", "java.lang.Integer", "Float");
          return this;
      }

      public TagCriteria andTypeGreaterThan(java.lang.Integer value) {
          addCriterion("type", value, ConditionMode.GREATER_THEN, "type", "java.lang.Integer", "Float");
          return this;
      }

      public TagCriteria andTypeGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("type", value, ConditionMode.GREATER_EQUAL, "type", "java.lang.Integer", "Float");
          return this;
      }

      public TagCriteria andTypeLessThan(java.lang.Integer value) {
          addCriterion("type", value, ConditionMode.LESS_THEN, "type", "java.lang.Integer", "Float");
          return this;
      }

      public TagCriteria andTypeLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("type", value, ConditionMode.LESS_EQUAL, "type", "java.lang.Integer", "Float");
          return this;
      }

      public TagCriteria andTypeBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("type", value1, value2, ConditionMode.BETWEEN, "type", "java.lang.Integer", "Float");
    	  return this;
      }

      public TagCriteria andTypeNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("type", value1, value2, ConditionMode.NOT_BETWEEN, "type", "java.lang.Integer", "Float");
          return this;
      }
        
      public TagCriteria andTypeIn(List<java.lang.Integer> values) {
          addCriterion("type", values, ConditionMode.IN, "type", "java.lang.Integer", "Float");
          return this;
      }

      public TagCriteria andTypeNotIn(List<java.lang.Integer> values) {
          addCriterion("type", values, ConditionMode.NOT_IN, "type", "java.lang.Integer", "Float");
          return this;
      }
	public TagCriteria andAliasIsNull() {
		isnull("alias");
		return this;
	}
	
	public TagCriteria andAliasIsNotNull() {
		notNull("alias");
		return this;
	}
	
	public TagCriteria andAliasIsEmpty() {
		empty("alias");
		return this;
	}

	public TagCriteria andAliasIsNotEmpty() {
		notEmpty("alias");
		return this;
	}
        public TagCriteria andAliasLike(java.lang.String value) {
    	   addCriterion("alias", value, ConditionMode.FUZZY, "alias", "java.lang.String", "Float");
    	   return this;
      }

      public TagCriteria andAliasNotLike(java.lang.String value) {
          addCriterion("alias", value, ConditionMode.NOT_FUZZY, "alias", "java.lang.String", "Float");
          return this;
      }
      public TagCriteria andAliasEqualTo(java.lang.String value) {
          addCriterion("alias", value, ConditionMode.EQUAL, "alias", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andAliasNotEqualTo(java.lang.String value) {
          addCriterion("alias", value, ConditionMode.NOT_EQUAL, "alias", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andAliasGreaterThan(java.lang.String value) {
          addCriterion("alias", value, ConditionMode.GREATER_THEN, "alias", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andAliasGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("alias", value, ConditionMode.GREATER_EQUAL, "alias", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andAliasLessThan(java.lang.String value) {
          addCriterion("alias", value, ConditionMode.LESS_THEN, "alias", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andAliasLessThanOrEqualTo(java.lang.String value) {
          addCriterion("alias", value, ConditionMode.LESS_EQUAL, "alias", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andAliasBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("alias", value1, value2, ConditionMode.BETWEEN, "alias", "java.lang.String", "String");
    	  return this;
      }

      public TagCriteria andAliasNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("alias", value1, value2, ConditionMode.NOT_BETWEEN, "alias", "java.lang.String", "String");
          return this;
      }
        
      public TagCriteria andAliasIn(List<java.lang.String> values) {
          addCriterion("alias", values, ConditionMode.IN, "alias", "java.lang.String", "String");
          return this;
      }

      public TagCriteria andAliasNotIn(List<java.lang.String> values) {
          addCriterion("alias", values, ConditionMode.NOT_IN, "alias", "java.lang.String", "String");
          return this;
      }
	public TagCriteria andSystemIdIsNull() {
		isnull("system_id");
		return this;
	}
	
	public TagCriteria andSystemIdIsNotNull() {
		notNull("system_id");
		return this;
	}
	
	public TagCriteria andSystemIdIsEmpty() {
		empty("system_id");
		return this;
	}

	public TagCriteria andSystemIdIsNotEmpty() {
		notEmpty("system_id");
		return this;
	}
       public TagCriteria andSystemIdEqualTo(java.lang.Integer value) {
          addCriterion("system_id", value, ConditionMode.EQUAL, "systemId", "java.lang.Integer", "Float");
          return this;
      }

      public TagCriteria andSystemIdNotEqualTo(java.lang.Integer value) {
          addCriterion("system_id", value, ConditionMode.NOT_EQUAL, "systemId", "java.lang.Integer", "Float");
          return this;
      }

      public TagCriteria andSystemIdGreaterThan(java.lang.Integer value) {
          addCriterion("system_id", value, ConditionMode.GREATER_THEN, "systemId", "java.lang.Integer", "Float");
          return this;
      }

      public TagCriteria andSystemIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("system_id", value, ConditionMode.GREATER_EQUAL, "systemId", "java.lang.Integer", "Float");
          return this;
      }

      public TagCriteria andSystemIdLessThan(java.lang.Integer value) {
          addCriterion("system_id", value, ConditionMode.LESS_THEN, "systemId", "java.lang.Integer", "Float");
          return this;
      }

      public TagCriteria andSystemIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("system_id", value, ConditionMode.LESS_EQUAL, "systemId", "java.lang.Integer", "Float");
          return this;
      }

      public TagCriteria andSystemIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("system_id", value1, value2, ConditionMode.BETWEEN, "systemId", "java.lang.Integer", "Float");
    	  return this;
      }

      public TagCriteria andSystemIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("system_id", value1, value2, ConditionMode.NOT_BETWEEN, "systemId", "java.lang.Integer", "Float");
          return this;
      }
        
      public TagCriteria andSystemIdIn(List<java.lang.Integer> values) {
          addCriterion("system_id", values, ConditionMode.IN, "systemId", "java.lang.Integer", "Float");
          return this;
      }

      public TagCriteria andSystemIdNotIn(List<java.lang.Integer> values) {
          addCriterion("system_id", values, ConditionMode.NOT_IN, "systemId", "java.lang.Integer", "Float");
          return this;
      }
	public TagCriteria andCtimeIsNull() {
		isnull("ctime");
		return this;
	}
	
	public TagCriteria andCtimeIsNotNull() {
		notNull("ctime");
		return this;
	}
	
	public TagCriteria andCtimeIsEmpty() {
		empty("ctime");
		return this;
	}

	public TagCriteria andCtimeIsNotEmpty() {
		notEmpty("ctime");
		return this;
	}
       public TagCriteria andCtimeEqualTo(java.math.BigDecimal value) {
          addCriterion("ctime", value, ConditionMode.EQUAL, "ctime", "java.math.BigDecimal", "Float");
          return this;
      }

      public TagCriteria andCtimeNotEqualTo(java.math.BigDecimal value) {
          addCriterion("ctime", value, ConditionMode.NOT_EQUAL, "ctime", "java.math.BigDecimal", "Float");
          return this;
      }

      public TagCriteria andCtimeGreaterThan(java.math.BigDecimal value) {
          addCriterion("ctime", value, ConditionMode.GREATER_THEN, "ctime", "java.math.BigDecimal", "Float");
          return this;
      }

      public TagCriteria andCtimeGreaterThanOrEqualTo(java.math.BigDecimal value) {
          addCriterion("ctime", value, ConditionMode.GREATER_EQUAL, "ctime", "java.math.BigDecimal", "Float");
          return this;
      }

      public TagCriteria andCtimeLessThan(java.math.BigDecimal value) {
          addCriterion("ctime", value, ConditionMode.LESS_THEN, "ctime", "java.math.BigDecimal", "Float");
          return this;
      }

      public TagCriteria andCtimeLessThanOrEqualTo(java.math.BigDecimal value) {
          addCriterion("ctime", value, ConditionMode.LESS_EQUAL, "ctime", "java.math.BigDecimal", "Float");
          return this;
      }

      public TagCriteria andCtimeBetween(java.math.BigDecimal value1, java.math.BigDecimal value2) {
    	  addCriterion("ctime", value1, value2, ConditionMode.BETWEEN, "ctime", "java.math.BigDecimal", "Float");
    	  return this;
      }

      public TagCriteria andCtimeNotBetween(java.math.BigDecimal value1, java.math.BigDecimal value2) {
          addCriterion("ctime", value1, value2, ConditionMode.NOT_BETWEEN, "ctime", "java.math.BigDecimal", "Float");
          return this;
      }
        
      public TagCriteria andCtimeIn(List<java.math.BigDecimal> values) {
          addCriterion("ctime", values, ConditionMode.IN, "ctime", "java.math.BigDecimal", "Float");
          return this;
      }

      public TagCriteria andCtimeNotIn(List<java.math.BigDecimal> values) {
          addCriterion("ctime", values, ConditionMode.NOT_IN, "ctime", "java.math.BigDecimal", "Float");
          return this;
      }
	public TagCriteria andOrdersIsNull() {
		isnull("orders");
		return this;
	}
	
	public TagCriteria andOrdersIsNotNull() {
		notNull("orders");
		return this;
	}
	
	public TagCriteria andOrdersIsEmpty() {
		empty("orders");
		return this;
	}

	public TagCriteria andOrdersIsNotEmpty() {
		notEmpty("orders");
		return this;
	}
       public TagCriteria andOrdersEqualTo(java.math.BigDecimal value) {
          addCriterion("orders", value, ConditionMode.EQUAL, "orders", "java.math.BigDecimal", "Float");
          return this;
      }

      public TagCriteria andOrdersNotEqualTo(java.math.BigDecimal value) {
          addCriterion("orders", value, ConditionMode.NOT_EQUAL, "orders", "java.math.BigDecimal", "Float");
          return this;
      }

      public TagCriteria andOrdersGreaterThan(java.math.BigDecimal value) {
          addCriterion("orders", value, ConditionMode.GREATER_THEN, "orders", "java.math.BigDecimal", "Float");
          return this;
      }

      public TagCriteria andOrdersGreaterThanOrEqualTo(java.math.BigDecimal value) {
          addCriterion("orders", value, ConditionMode.GREATER_EQUAL, "orders", "java.math.BigDecimal", "Float");
          return this;
      }

      public TagCriteria andOrdersLessThan(java.math.BigDecimal value) {
          addCriterion("orders", value, ConditionMode.LESS_THEN, "orders", "java.math.BigDecimal", "Float");
          return this;
      }

      public TagCriteria andOrdersLessThanOrEqualTo(java.math.BigDecimal value) {
          addCriterion("orders", value, ConditionMode.LESS_EQUAL, "orders", "java.math.BigDecimal", "Float");
          return this;
      }

      public TagCriteria andOrdersBetween(java.math.BigDecimal value1, java.math.BigDecimal value2) {
    	  addCriterion("orders", value1, value2, ConditionMode.BETWEEN, "orders", "java.math.BigDecimal", "Float");
    	  return this;
      }

      public TagCriteria andOrdersNotBetween(java.math.BigDecimal value1, java.math.BigDecimal value2) {
          addCriterion("orders", value1, value2, ConditionMode.NOT_BETWEEN, "orders", "java.math.BigDecimal", "Float");
          return this;
      }
        
      public TagCriteria andOrdersIn(List<java.math.BigDecimal> values) {
          addCriterion("orders", values, ConditionMode.IN, "orders", "java.math.BigDecimal", "Float");
          return this;
      }

      public TagCriteria andOrdersNotIn(List<java.math.BigDecimal> values) {
          addCriterion("orders", values, ConditionMode.NOT_IN, "orders", "java.math.BigDecimal", "Float");
          return this;
      }
}